<script type="text/javascript" >
<{include file='warehouse/productsbatch/js/index.js'}>
</script>
<style type="text/css">
    .button {
        background: url(images/left-menu-li.gif) repeat-x left top #F1F6F9;
        border: 1px solid #318DAC;
        font-weight: bold;
        padding: 2px 5px;
        font-weight: lighter;
        color: #318DAC;
        vertical-align: middle;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        margin: auto 5px
    }

    div#add {
        text-align: center;
    }

    div.info {
        text-align: left;
    }

    div.item {
        margin-bottom: 12px;
    }

    input.text {
        height: 22px;
        margin-left: 8px;
    }

    span.text {
        margin-left: 8px;
    }

    span.userInfoLeft {
        display: block;
        float: left;
        width: 100px;
    }

    .msg span {
        float: left;
        width: 100%;
        clear: both;
    }
 #iTitle {
    line-height: 27px;
	height:54px;
  }
</style>

<div id="iTitle">
    <div id="iTitleSub">
        <form id="sForm" name="sForm">
            <div>
                <label>
                    <{$lang.ws_code}>:<input class="myInput" type="text"  name="ws_code" onkeyup="if(event.keyCode==13){search();}">
                </label>
                
				<label>
                    <{$lang.customer_code}>:<input id="customer_id" class="myInput"  type="text" name="customer_id" onkeyup="if(event.keyCode==13){search();}">
                </label>
				
                <label>
                    <{$lang.receive}><{$lang.code}>:<input id="receiving_code" class="myInput"  type="text" name="receiving_code" onkeyup="if(event.keyCode==13){search();}">
                </label>
				<br>
				
				<label>
                    <{$lang.put_away}><{$lang.code}>:<input class="myInput" type="text"  name="putaway_code" onkeyup="if(event.keyCode==13){search();}">
                </label>
				<label>
                    <{$lang.product}><{$lang.code}>:<input id="product_sku" class="myInput"  type="text" name="product_sku" onkeyup="if(event.keyCode==13){search();}">
                </label>
				
				
                
                <input class="button" type="button" value="<{$lang.search}>" onclick="search();">
            </div>
        </form>

    </div>
    <div id="message" style="color:red;"></div>
    <div class="myClear"></div>
</div><!-- id="iTitle" 结束 -->

<h3><{$lang.inventory}><{$lang.batch}><{$lang.list}></h3>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTab">
    <thead>
    <tr>
        <th><{$lang.No}></th>
        <th><{$lang.ws_code}></th>
        <th><{$lang.put_away}><{$lang.code}></th>
        <th><{$lang.status}></th>
        <th><{$lang.receive}><{$lang.code}></th>
        <th><{$lang.customer_code}></th>
        <th><{$lang.product}><{$lang.code}></th>
        <th><{$lang.useable}><{$lang.quantity}></th>
        <th><{$lang.hold}><{$lang.inventory}></th>
        <th><{$lang.create}><{$lang.time}></th>
        <th><{$lang.last}><{$lang.update}><{$lang.time}></th>
        <th><{$lang.operation}></th>
    </tr>
    </thead>
    <tbody id="list"></tbody>
</table>
<div class="pagination"></div>

<div id="dialog" title="<{$lang.inventory}><{$lang.adjust}>" style="display:none;">
    <div class="info">
        <div class="validateTips" id="tips"></div>
        <form id="editdataForm" name="editdataForm">
            <input type="hidden" name="wpb_id" />
            <div class="item">
                <span class="userInfoLeft"><{$lang.put_away}><{$lang.code}>:</span>
					<span class="userInfoRight">
					    <span id="putaway_code_info" name="putaway_code_info"></span>
                        <input type="text" readonly=true name="putaway_code" id="putaway_code"
                               class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.batch}>:</span>
					<span class="userInfoRight">
					    <span id="putaway_lot_number_info" name="putaway_lot_number_info"></span>
                        <input type="text" readonly=true name="putaway_lot_number" id="putaway_lot_number"
                               class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.useable}><{$lang.quantity}>:</span>
					<span class="userInfoRight">
                        <input type="text" name="wpb_quantity" id="wpb_quantity" class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item" style="display: none">
                <span class="userInfoLeft"><{$lang.product}>ID:</span>
					<span class="userInfoRight">
                        <input type="text" name="product_id" id="product_id" class="text ui-widget-content"/>
                        <input type="hidden" name="c_product_id" id="c_product_id"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div style="clear: both;"></div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.reason}>:</span>
					<span class="userInfoRight">
                        <input type="text" name="reason" id="reason" class="text ui-widget-content"/>
                    </span>
                <div style="clear: both;"></div>
            </div>
        </form>
    </div>
</div>


<div id="dialogshelf" title="<{$lang.ws_code}><{$lang.adjust}>" style="display:none;">
    <div class="info">
        <div class="validateTips" id="tips"></div>
        <form id="editshelfForm" name="editshelfForm">
            <input type="hidden" name="wpb_id" />
            <div class="item">
                <span class="userInfoLeft"><{$lang.put_away}><{$lang.code}>:</span>
					<span class="userInfoRight">
                        <input type="text" readonly=true name="putaway_code" id="putaway_code"
                               class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.batch}>:</span>
					<span class="userInfoRight">
                        <input type="text" readonly=true name="putaway_lot_number" id="putaway_lot_number"
                               class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.old}><{$lang.ws_code}>:</span>
					<span class="userInfoRight">
                        <input type="text" name="ws_code_old" readonly=true id="ws_code_old" class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.move}><{$lang.quantity}>:</span>
					<span class="userInfoRight">
                        <input type="text" name="move_quantity" oldvalue='0' id='move_quantity' onblur="calqty(this)" class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div class="item">
                <span class="userInfoLeft"><{$lang.target}><{$lang.ws_code}>:</span>
					<span class="userInfoRight">
                        <input type="text" name="ws_code" id="ws_code" class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

            <div style="clear: both;"></div>
            <div class="item">
                <span class="userInfoLeft"><{$lang.reason}>:</span>
					<span class="userInfoRight">
                        <input type="text" name="reason" id="reason" class="text ui-widget-content"/>
                    </span>

                <div style="clear: both;"></div>
            </div>

        </form>
    </div>
</div>